package com.twu.biblioteca;

import static java.lang.String.format;

/**
 * Created with IntelliJ IDEA.
 * User: Thoughtworker
 * Date: 8/22/13
 * Time: 5:22 PM
 * To change this template use File | Settings | File Templates.
 */
public class Movie {


    private String name;
    private String year;
    private String rating;
    private String director;

    public Movie(String name, String year, String rating, String director){
        this.name=name;
        this.year = year;
        this.rating = rating;
        this.director = director;
    }

    public String getName() {

        return this.name;
    }

    public String getYear() {

        return this.year;
    }

    public String getRating() {

        return this.rating;
    }

    public String getDirector() {

        return this.director;
    }

    public String getDescription(){
        return String.format("%s    %s    %s    %s",this.name,this.year,this.director,this.rating);
    }


}
